package com.ihr360.dictionary.code.nation;

import com.ihr360.commons.model.dto.BaseCode;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;

/** 国家 */
@Entity
@Cacheable
@Cache(region = "cnb.base", usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class Country extends BaseCode<Integer> {

    private static final long serialVersionUID = 8806570239239467170L;

    /** 两位字符简码 */
    @Column(length = 2)
    private String twoCharacterCode;

    /** 三位字符简码 */
    @Column(length = 3)
    private String threeCharacterCode;

    /** 全名 */
    @Column(length = 50)
    private String fullName;

    /** 全名英文名 */
    @Column(length = 100)
    private String fullEngName;

    public String getTwoCharacterCode() {
        return twoCharacterCode;
    }

    public void setTwoCharacterCode(String twoCharacterCode) {
        this.twoCharacterCode = twoCharacterCode;
    }

    public String getThreeCharacterCode() {
        return threeCharacterCode;
    }

    public void setThreeCharacterCode(String threeCharacterCode) {
        this.threeCharacterCode = threeCharacterCode;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getFullEngName() {
        return fullEngName;
    }

    public void setFullEngName(String fullEngName) {
        this.fullEngName = fullEngName;
    }
}
